﻿using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace WeiboPlus.Models
{
    [Table(Name = "sns_geo")]
    public class GeoInfo : NotificationObject
    {
        int _accountId;
        [Column(Name = "account_id", IsPrimaryKey = true)]
        public int AccountId
        {
            get
            {
                return _accountId;
            }
            set
            {
                RaisePropertyChanging("AccountId");
                _accountId = value;
                RaisePropertyChanged("AccountId");
            }
        }

        long _statusId;
        [Column(Name = "status_id", IsPrimaryKey = true)]
        public long StatusId
        {
            get
            {
                return _statusId;
            }
            set
            {
                RaisePropertyChanging("StatusId");
                _statusId = value;
                RaisePropertyChanged("StatusId");
            }
        }

        float _altitude;
        [Column(Name = "altitude")]
        public float Altitude
        {
            get
            {
                return _altitude;
            }
            set
            {
                RaisePropertyChanging("Altitude");
                _altitude = value;
                RaisePropertyChanged("Altitude");
            }
        }

        float _lat;
        [Column(Name = "latitude")]
        public float Lat
        {
            get
            {
                return _lat;
            }
            set
            {
                RaisePropertyChanging("Lat");
                _lat = value;
                RaisePropertyChanged("Lat");
            }
        }

        float _long;
        [Column(Name = "longtitude")]
        public float Long
        {
            get
            {
                return _long;
            }
            set
            {
                RaisePropertyChanging("Long");
                _long = value;
                RaisePropertyChanged("Long");
            }
        }

        [Column(IsVersion = true)]
#pragma warning disable 0168, 0169
        private Binary _version; 
#pragma warning restore 0168, 0169
    }
}
